package com.iotechn.unimall.data.dto.warehouse;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.iotechn.unimall.data.dto.SuperDTO;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author kyms
 */
@ExcelTarget("warehouseLossGoodsDTO")
@Data
public class WarehouseLossGoodsDTO extends SuperDTO implements Serializable {
    @Excel(name = "单号", width = 20d)
    private String orderNo;
    private Long lossCheckId;
    private Float lossCheckPreGoodsNum;
    private Float lossCheckAftGoodsNum;

    private Float lossCheckGoodsAmount;
    @Excel(name = "名称")
    private String spuName;
    @Excel(name = "规格")
    private String skuName;
    @Excel(name = "条码", width = 20d)
    private String goodsBarCode;
    private String barCode;
    private Long skuId;
    private String goodsName;
    private String goodsNo;
    @Excel(name = "单位")
    private String goodsUnit;
    @Excel(name = "损耗数量")
    private Float lossCheckGoodsNum;

    private String goodsImg;
    private Long warehouseId;
    private Long spuId;
    @Excel(name = "类型", replace = {"普通_0", "品鉴_1", " _ "})
    private Integer lossType;
    //平均成本价
    private Float averPrice;
    private String img;

    private String unit;
    //仓库已有库存
    private Float warehouseSkuNum;

    @Excel(name = "状态", replace = {"待确认_0", "已确认_1", " _ "})
    private Integer warehouseOrderState;
    @Excel(name = "仓库")
    private String warehouseName;
       @Excel(name = "制单日期", databaseFormat = "yyyyMMddHHmmss", format = "yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;
}
